import 'package:distribution_mall_flutter/pages/message/widgets/message_item.dart';
import 'package:distribution_mall_flutter/pages/message/widgets/message_order.dart';
import 'package:flutter/material.dart';

class MessagePage extends StatefulWidget {
  const MessagePage({super.key});

  @override
  State<MessagePage> createState() {
    return _MessagePage();
  }
}

class _MessagePage extends State<MessagePage>
    with AutomaticKeepAliveClientMixin {
  @override
  Widget build(BuildContext context) {
    super.build(context);
    return Ink(
        decoration: const BoxDecoration(
            gradient: LinearGradient(
                colors: [
                  Color.fromRGBO(255, 255, 255, 1),
                  Color.fromRGBO(255, 249, 243, 1)
                ],
                begin: Alignment.topLeft,
                end: Alignment.bottomRight,
                stops: [0.135, 1],
                transform: GradientRotation(315 * 3.14159265359 / 180))),
        child: const Column(
          children: [MessageItem(), MessgeScrollPage()],
        ));
  }

  @override
  bool get wantKeepAlive => true;
}
